﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using anks.Components;
using pygs.Classes;

namespace pygs.Messaging.Buffer
{
    public abstract class CustomBuffer : Component
    {
        public abstract void Add(Message message);
        public abstract void Add(List<Message> list);
        public abstract void Add(IEnumerable<Message> list);
        public abstract void AddToTop(Message message);
        public abstract void AddToTop(List<Message> list);
        public abstract void AddToTop(IEnumerable<Message> list);
        public abstract Message GetTop();
        public abstract List<Message> GetTop(int count);
        protected abstract int GetCount();
        public int count { get { return GetCount(); } }

    }
}
